# from selenium import webdriver
# from selenium.webdriver.common.by import By
#
# driver = webdriver.Chrome()
# driver.get('https://www.baidu.com')
# print(driver.find_element(By.XPATH, "//form/input").get_attribute('outerHTML'))
# driver.quit()
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.maximize_window()
driver.get('https://www.baidu.com')
print(driver.find_element(By.XPATH, '//input[3]').get_attribute('outerHTML'))
driver.quit()
